package com.xsy.middleware_template.utils;
import lombok.Data;

/**
 * 响应数据(结果)最外层对象
 * @author dzf
 * @date 2022/12/8 15:30
 */
@Data
public class ResultVo<T> {

    /** 状态码 "状态码（200成功、500错误）"*/
    private Integer code;

    /** 提示信息 */
    private String msg;


    /** 响应数据 */
    private T data;

    public ResultVo(Integer code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultVo(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
